package com.example.demo;

import com.example.demo.Mappers.GetRecipeListMapper;
import com.example.demo.Timmer.BugXmlTimer;
import com.example.demo.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2018/4/16.
 */
public class Maintest {

    @Autowired
    private static GetRecipeListMapper mapper;
    public static void main(String[] args) throws Exception {
    System.out.print(DateUtils.getBirAgeSex("513427199309232818").get("birthday"));    ;

        }
/***判断身份证号码是否合法*/
    public static Date strToDateLong(String strDate) {
        SimpleDateFormat formatter = new SimpleDateFormat("YYYY-MM-DD HH:mm:ss");
        ParsePosition pos = new ParsePosition(0);
        Date strtodate = formatter.parse(strDate, pos);
        return strtodate;
    }

}
